package com.mini.gateway.plugin.exception;

/**
 * 业务级别异常
 * 在处理service层的错误时必须捕获其他异常，统一抛出该异常
 * 
 */
public class BusinessException extends RuntimeException {

    /** 序列化id */
    private static final long serialVersionUID = -6020718423249145189L;

    public BusinessException(String message) {
        super(message);
    }

    /**
     * 返回默认的出错代码，供外层捕获时使用
     *
     * @param throwable
     */
     public BusinessException(Throwable throwable) {
         super(throwable);
     }

}
